package com.util;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Arrays;

/**
 * @author think
 * @version 2019/10/10
 * @since 网络地址操作
 */
public class IPAddressOper {

    public static void ipAddressOper(String hostName) throws UnknownHostException {
        System.out.println(Arrays.toString(InetAddress.getAllByName(hostName)));
    }
}
